import Toast from '../lib/toast'
import module from '../lib/showModule'

const Mixins = {
    beforeRouteLeave(to, from, next) {
        module.hideModule();
        next()
    },
    methods: {
        toast(obj) {
            Toast(obj)
        },
        showModule(obj) {
            module.showModule(obj)
        }
    } 
}

export default Mixins
